import java.util.Random;
import java.util.*;
public class chaishuzhi {
    public static void main(String args) {
        Random Random = new Random();
        int n=Random.nextInt(0,101);
        for (int k = 1; k <= 5; k++) {
            System.out.println("请输入你猜的数字");
            Scanner i = new Scanner(System.in);
            int w = i.nextInt();
            if (w == n && k == 1) {
                System.out.println("你真厉害，一次就对了。");
            }
            if (w == n && 2 <= k && k <= 4) {
                System.out.println("你很聪明，猜对了。");

            }
            if (k == 5) {
                System.out.println("笨蛋，你猜这么多次。");
                break;
            } else {
                System.out.println("猜错啦，再来一次");

            }
        }
    }
}